// pages/onedollar/index.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
        banner: "/images/banner1.png",
        tabindex: -1,
		intelligent:["智能排序","评价最高","人气最高","离我最近"],
        tabs: ["全部分类", "全城", "智能排序"],
		goodslist: [
			{ img: "/images/card1.png", name: "2018新款布艺 车载按摩坐垫 ", tips: "每日爆款（每人每日限领一份）", price: "1", lastnum: 15, oldprice: "23", limitnum: "3" },
			{ img: "/images/card1.png", name: "2018新款布艺 车载按摩坐垫 ", tips: "每日爆款（每人每日限领一份）", price: "1", lastnum: 15, oldprice: "23", limitnum: "3" },
			{ img: "/images/card1.png", name: "2018新款布艺 车载按摩坐垫 ", tips: "每日爆款（每人每日限领一份）", price: "1", lastnum: 15, oldprice: "23", limitnum: "3" },
			{ img: "/images/card1.png", name: "2018新款布艺 车载按摩坐垫 ", tips: "每日爆款（每人每日限领一份）", price: "1", lastnum: 15, oldprice: "23",limitnum:"3" }
		]
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function(options) {

    },

    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function() {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function() {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function() {

    },
	details:function(){
   wx.navigateTo({
	   url: 'details',
   })
	},
	gobuy:function(){
wx.navigateTo({
	url: '/pages/carstore/pay',
})
	},
    tabtap: function(e) {
        this.setData({
            tabindex: e.currentTarget.dataset.index
        })
    }
})